/*
 * Copyright 2019 The FATE Authors. All Rights Reserved.
 *
 * Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 *
 *     http://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 */

package com.webank.ai.fate.eggroll.meta.service.dao.generated.model;

import java.io.Serializable;
import java.util.Date;

public class Result implements Serializable {
    /**
     * This field was generated by MyBatis Generator.
     * This field corresponds to the database table result
     *
     * @mbg.generated
     */
    private static final long serialVersionUID = 1L;
    /**
     * This field was generated by MyBatis Generator.
     * This field corresponds to the database column result.result_id
     *
     * @mbg.generated
     */
    private Long resultId;
    /**
     * This field was generated by MyBatis Generator.
     * This field corresponds to the database column result.result_name
     *
     * @mbg.generated
     */
    private String resultName;
    /**
     * This field was generated by MyBatis Generator.
     * This field corresponds to the database column result.result_type
     *
     * @mbg.generated
     */
    private String resultType;
    /**
     * This field was generated by MyBatis Generator.
     * This field corresponds to the database column result.value
     *
     * @mbg.generated
     */
    private String value;
    /**
     * This field was generated by MyBatis Generator.
     * This field corresponds to the database column result.status
     *
     * @mbg.generated
     */
    private String status;
    /**
     * This field was generated by MyBatis Generator.
     * This field corresponds to the database column result.task_id
     *
     * @mbg.generated
     */
    private Long taskId;
    /**
     * This field was generated by MyBatis Generator.
     * This field corresponds to the database column result.created_at
     *
     * @mbg.generated
     */
    private Date createdAt;
    /**
     * This field was generated by MyBatis Generator.
     * This field corresponds to the database column result.updated_at
     *
     * @mbg.generated
     */
    private Date updatedAt;

    /**
     * This method was generated by MyBatis Generator.
     * This method returns the value of the database column result.result_id
     *
     * @return the value of result.result_id
     * @mbg.generated
     */
    public Long getResultId() {
        return resultId;
    }

    /**
     * This method was generated by MyBatis Generator.
     * This method sets the value of the database column result.result_id
     *
     * @param resultId the value for result.result_id
     * @mbg.generated
     */
    public void setResultId(Long resultId) {
        this.resultId = resultId;
    }

    /**
     * This method was generated by MyBatis Generator.
     * This method returns the value of the database column result.result_name
     *
     * @return the value of result.result_name
     * @mbg.generated
     */
    public String getResultName() {
        return resultName;
    }

    /**
     * This method was generated by MyBatis Generator.
     * This method sets the value of the database column result.result_name
     *
     * @param resultName the value for result.result_name
     * @mbg.generated
     */
    public void setResultName(String resultName) {
        this.resultName = resultName == null ? null : resultName.trim();
    }

    /**
     * This method was generated by MyBatis Generator.
     * This method returns the value of the database column result.result_type
     *
     * @return the value of result.result_type
     * @mbg.generated
     */
    public String getResultType() {
        return resultType;
    }

    /**
     * This method was generated by MyBatis Generator.
     * This method sets the value of the database column result.result_type
     *
     * @param resultType the value for result.result_type
     * @mbg.generated
     */
    public void setResultType(String resultType) {
        this.resultType = resultType == null ? null : resultType.trim();
    }

    /**
     * This method was generated by MyBatis Generator.
     * This method returns the value of the database column result.value
     *
     * @return the value of result.value
     * @mbg.generated
     */
    public String getValue() {
        return value;
    }

    /**
     * This method was generated by MyBatis Generator.
     * This method sets the value of the database column result.value
     *
     * @param value the value for result.value
     * @mbg.generated
     */
    public void setValue(String value) {
        this.value = value == null ? null : value.trim();
    }

    /**
     * This method was generated by MyBatis Generator.
     * This method returns the value of the database column result.status
     *
     * @return the value of result.status
     * @mbg.generated
     */
    public String getStatus() {
        return status;
    }

    /**
     * This method was generated by MyBatis Generator.
     * This method sets the value of the database column result.status
     *
     * @param status the value for result.status
     * @mbg.generated
     */
    public void setStatus(String status) {
        this.status = status == null ? null : status.trim();
    }

    /**
     * This method was generated by MyBatis Generator.
     * This method returns the value of the database column result.task_id
     *
     * @return the value of result.task_id
     * @mbg.generated
     */
    public Long getTaskId() {
        return taskId;
    }

    /**
     * This method was generated by MyBatis Generator.
     * This method sets the value of the database column result.task_id
     *
     * @param taskId the value for result.task_id
     * @mbg.generated
     */
    public void setTaskId(Long taskId) {
        this.taskId = taskId;
    }

    /**
     * This method was generated by MyBatis Generator.
     * This method returns the value of the database column result.created_at
     *
     * @return the value of result.created_at
     * @mbg.generated
     */
    public Date getCreatedAt() {
        return createdAt;
    }

    /**
     * This method was generated by MyBatis Generator.
     * This method sets the value of the database column result.created_at
     *
     * @param createdAt the value for result.created_at
     * @mbg.generated
     */
    public void setCreatedAt(Date createdAt) {
        this.createdAt = createdAt;
    }

    /**
     * This method was generated by MyBatis Generator.
     * This method returns the value of the database column result.updated_at
     *
     * @return the value of result.updated_at
     * @mbg.generated
     */
    public Date getUpdatedAt() {
        return updatedAt;
    }

    /**
     * This method was generated by MyBatis Generator.
     * This method sets the value of the database column result.updated_at
     *
     * @param updatedAt the value for result.updated_at
     * @mbg.generated
     */
    public void setUpdatedAt(Date updatedAt) {
        this.updatedAt = updatedAt;
    }

    /**
     * This method was generated by MyBatis Generator.
     * This method corresponds to the database table result
     *
     * @mbg.generated
     */
    @Override
    public String toString() {
        StringBuilder sb = new StringBuilder();
        sb.append(getClass().getSimpleName());
        sb.append(" [");
        sb.append("Hash = ").append(hashCode());
        sb.append(", resultId=").append(resultId);
        sb.append(", resultName=").append(resultName);
        sb.append(", resultType=").append(resultType);
        sb.append(", value=").append(value);
        sb.append(", status=").append(status);
        sb.append(", taskId=").append(taskId);
        sb.append(", createdAt=").append(createdAt);
        sb.append(", updatedAt=").append(updatedAt);
        sb.append("]");
        return sb.toString();
    }

    /**
     * This method was generated by MyBatis Generator.
     * This method corresponds to the database table result
     *
     * @mbg.generated
     */
    @Override
    public boolean equals(Object that) {
        if (this == that) {
            return true;
        }
        if (that == null) {
            return false;
        }
        if (getClass() != that.getClass()) {
            return false;
        }
        Result other = (Result) that;
        return (this.getResultId() == null ? other.getResultId() == null : this.getResultId().equals(other.getResultId()))
                && (this.getResultName() == null ? other.getResultName() == null : this.getResultName().equals(other.getResultName()))
                && (this.getResultType() == null ? other.getResultType() == null : this.getResultType().equals(other.getResultType()))
                && (this.getValue() == null ? other.getValue() == null : this.getValue().equals(other.getValue()))
                && (this.getStatus() == null ? other.getStatus() == null : this.getStatus().equals(other.getStatus()))
                && (this.getTaskId() == null ? other.getTaskId() == null : this.getTaskId().equals(other.getTaskId()))
                && (this.getCreatedAt() == null ? other.getCreatedAt() == null : this.getCreatedAt().equals(other.getCreatedAt()))
                && (this.getUpdatedAt() == null ? other.getUpdatedAt() == null : this.getUpdatedAt().equals(other.getUpdatedAt()));
    }

    /**
     * This method was generated by MyBatis Generator.
     * This method corresponds to the database table result
     *
     * @mbg.generated
     */
    @Override
    public int hashCode() {
        final int prime = 31;
        int result = 1;
        result = prime * result + ((getResultId() == null) ? 0 : getResultId().hashCode());
        result = prime * result + ((getResultName() == null) ? 0 : getResultName().hashCode());
        result = prime * result + ((getResultType() == null) ? 0 : getResultType().hashCode());
        result = prime * result + ((getValue() == null) ? 0 : getValue().hashCode());
        result = prime * result + ((getStatus() == null) ? 0 : getStatus().hashCode());
        result = prime * result + ((getTaskId() == null) ? 0 : getTaskId().hashCode());
        result = prime * result + ((getCreatedAt() == null) ? 0 : getCreatedAt().hashCode());
        result = prime * result + ((getUpdatedAt() == null) ? 0 : getUpdatedAt().hashCode());
        return result;
    }
}